// Example model

var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var UserInfoSchema = new Schema({
    username: { type: String, trim: true },
    userpass: { type: String, trim: true },
    createDate: { type: Date, default: Date.now() },
});

mongoose.model('UserInfo', UserInfoSchema);